    <insert id="batchInsert" <#if table.primaryIsAutoIncrement >keyProperty="${table.primaryJavaName}" useGeneratedKeys="true"</#if>>
        INSERT INTO ${table.tableName}(
    <#list columnList as column >
        <#if !column.isAutoIncrement || !column.isPrimaryKey>
            ${column.columnName}<#if column_has_next>,</#if>
        </#if>
    </#list>
        ) values
        <foreach collection="list" item="item" separator=",">
            (
        <#list columnList as column >
            <#if !column.isAutoIncrement || !column.isPrimaryKey>
            ${r'#{'}item.${column.columnJavaName}}<#if column_has_next>,</#if>
            </#if>
        </#list>
            )
        </foreach>
    </insert>